import request from '@/utils/request'

// 查询学员考试成绩管理列表
export function listAchievement(query) {
  return request({
    url: '/system/achievement/list',
    method: 'get',
    params: query
  })
}

// 查询学员考试成绩管理详细
export function getAchievement(id) {
  return request({
    url: '/system/achievement/' + id,
    method: 'get'
  })
}

// 新增学员考试成绩管理
export function addAchievement(data) {
  return request({
    url: '/system/achievement',
    method: 'post',
    data: data
  })
}

// 修改学员考试成绩管理
export function updateAchievement(data) {
  return request({
    url: '/system/achievement',
    method: 'put',
    data: data
  })
}

// 删除学员考试成绩管理
export function delAchievement(id) {
  return request({
    url: '/system/achievement/' + id,
    method: 'delete'
  })
}

export function radar(id) {
  return request({
    url: '/system/achievement/achievementId/' + id,
    method: 'get'
  })
}

// 查询学员折线图
export function achievementLine(query) {
  return request({
    url: '/system/achievement/line',
    method: 'get',
    params: query
  })
}

